package com.gxitsky.ik;

import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.common.Term;

import java.util.List;

/**
 * @author gxing
 * @desc TODO
 * @date 2023/3/16
 */
public class IkTestMain {

    public static void main(String[] args) {
        String text = "胸椎结核经胸膜外肋骨横突切除病灶清除及椎管减压术";
        List<Term> segment = HanLP.segment(text);

        for (Term term : segment) {
            System.out.println(term.word);
        }

    }

}
